package com.lanyeo.liver.ui

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import com.lanyeo.liver.databinding.TaskLockAnimalBinding

class SettingLockAnimal(context: Context) : ISetting {
    private var _binding: TaskLockAnimalBinding? = null
    private val binding get() = _binding!!

    init {
        _binding = TaskLockAnimalBinding.inflate(LayoutInflater.from(context))

    }
    override fun view(): View {
        return binding.root
    }

    override fun params(): Any {
        val selectActions = mutableSetOf<String>()
        if (binding.cbDebug.isChecked) {
            selectActions.add(TAG_DEBUG)
        }
        selectActions.add("拾取")
        selectActions.add("搜寻")
        return selectActions
    }

    companion object {
        const val TAG_DEBUG = "Debug"
    }
}